<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        li:first-child {
            color: blue;
        }
        li:last-child {
            color: brown;
        }

        li:nth-child(6) {
            color: yellowgreen;
        }

        li:nth-child(2n+1) {
            color: yellowgreen;
        }
    </style>
</head>
<body>
    
    <ul>
        <li>li1</li>
        <li>li2</li>
        <li>li3</li>
        <li>li4</li>
        <li>li5</li>
        <li>li6</li>
        <li>li7</li>
        <li>li8</li>
    </ul>
</body>
</html>